package aex.domain;

import java.sql.Timestamp;

/**
 * UserMail entity. @author MyEclipse Persistence Tools
 */

public class UserMail implements java.io.Serializable {

	// Fields

	private Integer umId;
	private Puser puserByPuAcceput;
	private Puser puserByPuSend;
	private Timestamp umTime;
	private String umContent;

	// Constructors

	/** default constructor */
	public UserMail() {
	}

	/** minimal constructor */
	public UserMail(Integer umId) {
		this.umId = umId;
	}

	/** full constructor */
	public UserMail(Integer umId, Puser puserByPuAcceput, Puser puserByPuSend,
			Timestamp umTime, String umContent) {
		this.umId = umId;
		this.puserByPuAcceput = puserByPuAcceput;
		this.puserByPuSend = puserByPuSend;
		this.umTime = umTime;
		this.umContent = umContent;
	}

	// Property accessors

	public Integer getUmId() {
		return this.umId;
	}

	public void setUmId(Integer umId) {
		this.umId = umId;
	}

	public Puser getPuserByPuAcceput() {
		return this.puserByPuAcceput;
	}

	public void setPuserByPuAcceput(Puser puserByPuAcceput) {
		this.puserByPuAcceput = puserByPuAcceput;
	}

	public Puser getPuserByPuSend() {
		return this.puserByPuSend;
	}

	public void setPuserByPuSend(Puser puserByPuSend) {
		this.puserByPuSend = puserByPuSend;
	}

	public Timestamp getUmTime() {
		return this.umTime;
	}

	public void setUmTime(Timestamp umTime) {
		this.umTime = umTime;
	}

	public String getUmContent() {
		return this.umContent;
	}

	public void setUmContent(String umContent) {
		this.umContent = umContent;
	}

	@Override
	public String toString() {
		return "UserMail [umId=" + umId + ", puserByPuAcceput="
				+ puserByPuAcceput.getPuName() + ", puserByPuSend=" + puserByPuSend.getPuName()
				+ ", umTime=" + umTime + ", umContent=" + umContent + "]";
	}

	
}